import { IPSDEFVRSimpleCondition } from './ipsdefvrsimple-condition';
import { PSDEFVRSingleConditionImpl } from './psdefvrsingle-condition-impl';

export class PSDEFVRSimpleConditionImpl extends PSDEFVRSingleConditionImpl implements IPSDEFVRSimpleCondition {
  get condOp(): string {
    return this.M.condOp;
  }

  get paramType(): 'ENTITYFIELD' | 'CURTIME' {
    return this.M.paramType;
  }

  get paramValue(): string {
    return this.M.paramValue;
  }

  get cls(): string {
    return 'PSDEFVRSimpleConditionImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'dataentity.defield.valuerule.IPSDEFVRSimpleCondition') return true;
    return super.instanceof(cls);
  }
}
